import request from "@/utils/request";
/**
 * 疫苗列表
 * @param {*} data
 * @returns
 */
export function API_vaccineList(params) {
  return request({
    url: "/vaccine/list",
    method: "get",
    params,
  });
}

/**
 * 疫苗新增
 * @returns
 */
export function API_vaccineCreate(data) {
  return request({
    url: "/vaccine/create",
    method: "post",
    data,
  });
}

/**
 * 疫苗修改
 * @returns
 */
export function API_vaccineEdit(data) {
  return request({
    url: `/vaccine/edit/${data.code}`,
    method: "put",
    data,
  });
}

/**
 * 疫苗删除
 * @returns
 */
export function API_vaccineDelete(data) {
  return request({
    url: `/vaccine/delete/${data.code}`,
    method: "delete",
  });
}

/**
 * 疫苗记录
 * @returns
 */
export function API_vaccineGet(params) {
  return request({
    url: "/vaccine/get",
    method: "get",
    params,
  });
}
